#include "drv_systick.h"
static uint16_t fs_us=0;
static uint16_t fs_ms=0;
void drv_tim6_init(void)
{
	TIM_TimeBaseInitTypeDef  TIM_TimeBaseInitStruct;
	RCC_APB1PeriphClockCmd(RCC_APB1Periph_TIM6, ENABLE);
	TIM_TimeBaseInitStruct.TIM_ClockDivision=TIM_CKD_DIV1;
	TIM_TimeBaseInitStruct.TIM_CounterMode=TIM_CounterMode_Up;
	TIM_TimeBaseInitStruct.TIM_Period=1000-1;
	TIM_TimeBaseInitStruct.TIM_Prescaler=84-1;
	TIM_TimeBaseInit(TIM6, &TIM_TimeBaseInitStruct);
	TIM_Cmd(TIM6,ENABLE);
}
void drv_systick_ms(uint16_t ms)
{
	vTaskDelay(ms);
}
void drv_systick_us(uint32_t us)
{
	
}

